<div ng-controller="VerifiedChengyunController as vm">
  <h1 class="page-title">已审核个人用户<a class="btn pull-right" ng-href="/api/carrier/approved/export">导出Excel</a></h1>
  <div class="well table-well">
    
    <div class="table-responsive">
      <table class="table table-striped table-bordered">
        <thead>
          <tr>
            <th>会员号</th>
            <th>联系人</th>
            <th>手机号</th>
            <th>电子邮箱</th>
            <th>身份证号</th>
            <th>纳税人识别号</th>
            <th>状态</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="user in vm.users">
            <td><a ng-click="vm.viewDetail(user.id)">{{user.user.memberId}}</a></td>
            <td>{{user.contact.name}}</td>
            <td>{{user.contact.mobile}}</td>
            <td>{{user.contact.email}}</td>
            <td>{{user.idCardNumber}}</td>
            <td>{{user.taxerId}}</td>
            <td ng-switch="user.approvalStatus">
                  <div ng-switch-when="0">未审核</div>
                  <div ng-switch-when="1">审核中</div>
                  <div ng-switch-when="2">审核通过</div>
                  <div ng-switch-when="3">审核未通过</div>
              </td>
            <td><a class="btn btn-primary btn-mini" ng-click="vm.viewDetail(user.id)">查看</a></td>
          </tr>
          
        </tbody>
      </table>
    </div>
    <p ng-show="vm.noRecord">没有找到符合条件的数据！</p>
  </div>
  <div class="pagination pagination-centered" ng-show="!vm.noRecord">
    <ul>
      <li ng-class="vm.firstPage? 'disabled':''" ng-switch="vm.firstPage">
        <a ng-switch-when="false" ng-click="vm.loadPage(vm.currentPage-1)" >&laquo;</a>
        <a ng-switch-when="true" >&laquo;</a>
      </li>
      <li ng-repeat="me in vm.pages" ng-class="me==vm.currentPage? 'active':''" ng-switch="me==vm.currentPage">
        <a ng-switch-when="false" ng-click="vm.loadPage(me)" >{{me}}</a>
        <a ng-switch-when="true" >{{me}}</a>
      </li>
      <li ng-class="vm.lastPage? 'disabled':''" ng-switch on="vm.lastPage">
        <a ng-switch-when="false" ng-click="vm.loadPage(vm.currentPage+1)">&raquo;</a>
        <a ng-switch-when="true" >&raquo;</a>
      </li>
    </ul>
  </div>
</div>